package com.tanhua.dubbo.mongo;

import com.tanhua.mongo.Movement;
import com.tanhua.vo.MovementVo;
import com.tanhua.vo.PageResult;

import java.util.ArrayList;
import java.util.List;

public interface MovementAPI {

    void publishMovements(MovementVo vo,Long userId);

    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    PageResult findByFriendId(Long userId, Integer page, Integer pagesize);

    List<Movement> findByPIds(ArrayList<Long> list);

    List<Movement> randomTuijian(Integer pagesize);

    boolean hasComment(String movementId, Long userId, Integer like);

    Movement findByMovementId(String movementId);
}
